package com.itrip.itripauth.service.impl;

import com.itrip.itripauth.entity.Hotel;
import com.itrip.itripauth.entity.Image;
import com.itrip.itripauth.entity.LabelDic;
import com.itrip.itripauth.mapper.HotelMapper;
import com.itrip.itripauth.service.HotelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 酒店表 服务实现类
 * </p>
 *
 * @author 四阶段项目二组
 * @since 2020-02-25
 */
@Service
public class HotelServiceImpl extends ServiceImpl<HotelMapper, Hotel> implements HotelService {
    @Resource
    private HotelMapper hotelMapper;
    @Override
    public List<Image> getImg(Integer hotelId) {
        return hotelMapper.getImg(hotelId);
    }

    @Override
    public List<LabelDic> hotelList(Integer hotelId) {
        return hotelMapper.hotelList(hotelId);
    }
}
